PRINT_JS_LIB = {
    PRINT_URL: (function () {
        var url='';
        var scripts = document.getElementsByTagName('script'),
            nmRegExp = /\/?print.js\??/;
        var i, len, src, matches;
        for (i = 0, len = scripts.length; i < len; i++) {
            src = scripts[i].src;
            matches = src.match(nmRegExp);
            if (matches) {
                path = src.split(nmRegExp)[0];
                url = (path ? path + '/' : '') ;
				break;
            }
        }
        return url;
    }())
};

(function () {
		var url = PRINT_JS_LIB.PRINT_URL;
		document.write('<script type="text/javascript" src="'+url+'js/jquery.min.js"><\/script>');
		document.write('<script type="text/javascript" src="'+url+'js/snap.svg.js"><\/script>');
		document.write('<script type="text/javascript" src="'+url+'js/NPageLayout.js"><\/script>');
		document.write('<script type="text/javascript" src="'+url+'js/spin.min.js"><\/script>');
		document.write('<script type="text/javascript" src="'+url+'js/style.js"><\/script>');
		document.write('<link rel="stylesheet" type="text/css" href="'+url+'css/print.css"><\/link>');
}());